function insertLawConfiscatedCardApprovalInfo(approvalData) {
    // id 表标识
    // confiscated_card_id 罚没证id
    // unit_id 审批部门id',
    // unit_name  审批部门名称',
    // human_id 审批人员id',
    // human_name  审批人员名称',
    // approval_state_code  审批状态 0待审核 1 通过 2 不通过',
    // opinion  '审批意见',
    // approval_time   '审批时间',
    // approval_type 申请类型 1 申请 2 变更 3 注销',
    let insertLawConfiscatedCardApprovalInfoSql = [
        ['confiscated_card_id', approvalData.confiscatedCardId],
        ['unit_id', "'" +  approvalData.unitId + "'"],
        ['unit_name', "'" +  approvalData.unitName + "'"],
        ['human_id', "'" +  approvalData.humanId + "'"],
        ['human_name', "'" +  approvalData.humanName + "'"],
        ['approval_state_code', "'" +  approvalData.approvalStateCode + "'"],
        ['opinion', "'" +  approvalData.opinion + "'"],
        ['approval_type', "'" +  approvalData.approvalType + "'"],
        ['approval_time', 'NOW()']
    ];

    var formattedFields = insertLawConfiscatedCardApprovalInfoSql.map(function (field) {
        return "'" + field[0] + "'," + field[1];
    });

    var law_confiscated_card_approval_info = "ds_tbl:t_d6d40a9fbcac40568e164e9976b35459";
    var insertSql = "INSERT('" + law_confiscated_card_approval_info + "', [" + formattedFields.join(',') + "])";
    console.log("准备执行的SQL语句:", insertSql);

    return new Promise(function (resolve, reject) {
        api.EXEC_FORMULA(insertSql)
            .then(function (res) {
                console.log("数据插入成功");
                resolve(res);
            })
            .catch(function (err) {
                console.error("数据插入失败:", err);
                reject(err);
            });
    });
}

/**
 *  id 表标识
 *  confiscated_card_id 罚没证id
 *  unit_id 审批部门id',
 *  unit_name  审批部门名称',
 *  human_id 审批人员id',
 *  human_name  审批人员名称',
 *  approval_state_code  审批状态 0待审核 1 通过 2 不通过',
 *  opinion  '审批意见',
 *  approval_time   '审批时间',
 *  approval_type 申请类型 1 申请 2 变更 3 注销',
 * @param approvalData
 * @returns {Promise<never>|Promise<unknown>}
 */
function insertLawConfiscatedCardApprovalInfo(approvalData) {

    // 验证必需字段
    const requiredFields = ['confiscatedCardId', 'unitId', 'unitName', 'humanId', 'humanName', 'approvalStateCode', 'opinion', 'approvalType'];
    for (const field of requiredFields) {
        if (approvalData[field] === undefined || approvalData[field] === null) {
            return Promise.reject(new Error(`缺少必需字段: ${field}`));
        }
    }

    // 构建参数化查询，防止SQL注入
    const law_confiscated_card_approval_info = "ds_tbl:t_d6d40a9fbcac40568e164e9976b35459";

    // 使用参数化方式构建SQL，提高安全性
    const fields = [
        'confiscated_card_id',
        'unit_id',
        'unit_name',
        'human_id',
        'human_name',
        'approval_state_code',
        'opinion',
        'approval_type',
        'approval_time'
    ];

    const values = [
        approvalData.confiscatedCardId,
        approvalData.unitId,
        approvalData.unitName,
        approvalData.humanId,
        approvalData.humanName,
        approvalData.approvalStateCode,
        approvalData.opinion,
        approvalData.approvalType,
        'NOW()'
    ];

    // 构建参数化INSERT语句
    const placeholders = values.map((_, index) => `$${index + 1}`).join(',');
    const insertSql = `INSERT('${law_confiscated_card_approval_info}', [${fields.map((field, index) => `'${field}',$${index + 1}`).join(',')}])`;

    console.log("准备执行的SQL语句:", insertSql);
    console.log("参数值:", values);

    return new Promise(function (resolve, reject) {
        api.EXEC_FORMULA(insertSql, ...values)
            .then(function (res) {
                console.log("数据插入成功");
                resolve(res);
            })
            .catch(function (err) {
                console.error("数据插入失败:", err);
                reject(new Error(`审批记录插入失败: ${err.message}`));
            });
    });
}
